package com.example.tests;

import org.testng.annotations.Test;


public class ContactCreationTests extends BaseClass {
	

	@Test
	public void testNonEmptyContactCreation() throws Exception {
		app.getNavigationWorker().openMainPage();
		app.getNavigationWorker().gotoAddNewContact();
		ContactObjects contactInfo = new ContactObjects();
		contactInfo.firstName = "First name 1";
		contactInfo.lastName = "Last name 1";
		contactInfo.address1 = "Address 1";
		contactInfo.homePhone1 = "Home phone";
		contactInfo.mobilePhone = "Mobile";
		contactInfo.workPhone = "Work";
		contactInfo.email1 = "email@1";
		contactInfo.email2 = "email@2";
		contactInfo.birthDay = "3";
		contactInfo.birthMonth = "February";
		contactInfo.birthYear = "1980";
		contactInfo.address2 = "Address 2\nWhere do you live?\nUniverse";
		contactInfo.homePhone2 = "Home phone";
		contactInfo.assignedGroup = "Group seven";
		app.getContactWorker().fillupContactForm(contactInfo);
		app.getActionWorker().submitCreation();
		app.getNavigationWorker().gotoHomePage();
	}
}
